added main script, bower manifest, karma configuration and tests