Fixed non-core attr in indices

non-core attr now correctly excludes the js file from client build.